package com.qingxin.wuye.repertory.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 入库明细
 * @author hezhiwei
 *
 */
@Entity
@Table(name = "ruku_detail")
public class RukuDetail extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {

	private static final long serialVersionUID = 127834317062589479L;
	private String detailid;
	private String docketid;
	private String repertoryid;
	private String resid;
	private String resCode;
	private String resName;
	private Integer num;
	private Double price;
	private Double amount;
	private String remark;
	private String createBy;
	private Date createTime;

	// Constructors

	/** default constructor */
	public RukuDetail() {
	}

	/** minimal constructor */
	public RukuDetail(String detailid) {
		this.detailid = detailid;
	}

	/** full constructor */
	public RukuDetail(String detailid, String docketid,String repertoryid,String resid, String resCode,
			String resName, Integer num, Double price, Double amount,
			String remark, String createBy, Date createTime) {
		this.detailid = detailid;
		this.docketid = docketid;
		this.resid = resid;
		this.resCode = resCode;
		this.resName = resName;
		this.num = num;
		this.price = price;
		this.amount = amount;
		this.remark = remark;
		this.createBy = createBy;
		this.createTime = createTime;
	}
	
	
	public RukuDetail(String detailid, String docketid,String repertoryid,String resid, String resCode,
			String resName, Integer num, Double price, Double amount,
			String remark) {
		this.detailid = detailid;
		this.docketid = docketid;
		this.resid = resid;
		this.resCode = resCode;
		this.resName = resName;
		this.num = num;
		this.price = price;
		this.amount = amount;
		this.remark = remark;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "detailid", unique = true, nullable = false, length = 50)
	public String getDetailid() {
		return this.detailid;
	}

	public void setDetailid(String detailid) {
		this.detailid = detailid;
	}

	@Column(name = "docketid", length = 100)
	public String getDocketid() {
		return this.docketid;
	}

	public void setDocketid(String docketid) {
		this.docketid = docketid;
	}

	@Column(name = "resid", length = 100)
	public String getResid() {
		return resid;
	}

	public void setResid(String resid) {
		this.resid = resid;
	}
	
	@Column(name = "repertoryid", length = 50)
	public String getRepertoryid() {
		return repertoryid;
	}

	public void setRepertoryid(String repertoryid) {
		this.repertoryid = repertoryid;
	}

	@Column(name = "res_code", length = 100)
	public String getResCode() {
		return this.resCode;
	}

	public void setResCode(String resCode) {
		this.resCode = resCode;
	}

	@Column(name = "res_name", length = 100)
	public String getResName() {
		return this.resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	@Column(name = "num")
	public Integer getNum() {
		return this.num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Column(name = "price", precision = 15)
	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "amount", precision = 15)
	public Double getAmount() {
		return this.amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	@Column(name = "remark")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "create_by", length = 100)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}